﻿using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement.Records;

namespace Dyn.News.Models {
    /// <summary>
    /// The content part used by the CategoryArchives widget
    /// </summary>
    public class CategoryArchivesPartRecord : ContentPartRecord {
        public const ushort DefaultCategorylugLength = 255;

        [StringLength(DefaultCategorylugLength)]
        [Required]
        public virtual string Categorylug { get; set; }
    }
}
